<template>
  <div class="App">

  </div>
</template>

<script setup lang="ts" name="App">
  import {reactive,toRaw,markRaw} from "vue";
  //数据
  let person = reactive({
    name : 'zhangsan',
    age : 18
  })
  let rawPerson = toRaw(person)
  console.log(person)
  console.log(rawPerson)

  let car = markRaw({
    brand : '奔驰',         
    price : 100
  })
  let car1 = reactive(car)    //不是响应式的
  console.log(car)
  console.log(car1)
  //方法


</script>

<style scoped>

</style>


